package com.itheima.d9_KuoZhang.ZengSuoTest;

/**
 * @ClassName ZengMyRunnable
 * @Author 16799
 * @Date 2025/9/24 17:47
 * @Version 1.0
 * @Description TODO
 **/
public class ZengMyRunnable implements Runnable{

    private int count;
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            synchronized (this){
                System.out.println("线程名字："+Thread.currentThread().getName()+"的浏览人数count为：  "+(++count));
            }
        }
    }
}
